package cn.edu.cimv.service.impl;

import cn.edu.cimv.dao.entity.Awards;
import cn.edu.cimv.dao.mapper.AwardsMapper;
import cn.edu.cimv.service.AwardsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by 门铎 on 2016/6/27.
 */
@Service
public class AwardsServiceImpl implements AwardsService {
    @Autowired private AwardsMapper awardsMapper;
    @Override
    public void editAwards(Awards awards) {
        awardsMapper.insertAwards(awards);
    }

    @Override
    public List<Awards> queryAwards() {
        return awardsMapper.queryAwards();
    }

    @Override
    public void deleteAwards(int id) {
        awardsMapper.deleteAwards(id);
    }

    @Override
    public Awards queryAwardsById(int id) {
        return awardsMapper.queryAwardsById(id);
    }

    @Override
    public void updateAwards(Awards awards) {
        awardsMapper.updateAwards(awards);
    }
}
